<?php
/*
 +----------------------------------------------------------------------
 | TEMMOKUMVC [ NO BEST , ONLY BETTER ]
 +----------------------------------------------------------------------
 | Copyright (c) 2018~2019 https://www.temmoku.cn All rights reserved.
 +----------------------------------------------------------------------
 | Author: 张宗强 Email:webmaster@temmoku.cn QQ:158726877 516669373 TEL:17895221001 微信:temmokumvc
 +---------------------------------------------------------------------- 
*/
namespace plugin\advertisement\admin\model;
use \temmoku\db;
class index{
	
	public function tag_test($tag='',$is=false){
		if(!$tag){
			$tag=strtolower(_rand('6'));
		}
		$row=db::select('*')->from(P_jab.'list')->where("tag= '$tag'")->row();
		
		if($row){
			return $this->tag_test();
		}
		return $tag;
	}
	
}
?>